/**
 * form表单的格式配置
 *
 */
export const TestTandomTableFormConfig = (item) => {
  return [
    {
      fieldName: "id",
      fieldCNName: "",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "",
    },
    {
      fieldName: "groupName",
      fieldCNName: "",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "",
    },
    // {
    //   fieldName: "initSeq",
    //   fieldCNName: "起始入组顺序号",
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "inputNumber",
    //   rules: {
    //     required: true, // 只有为true的时候才写，为false这个字段不要
    //     min: 1, // 这里min一定要写在前面！！！！
    //     max: 50,
    //   },
    //   span: 2,
    // },
    // {
    //   fieldName: "seqQty",
    //   fieldCNName: "随机号个数",
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "inputNumber",
    //   rules: {
    //     required: true,
    //   },
    //   span: 2,
    // },
    // {
    //   /** 字段名，如：name */
    //   fieldName: "seqLen",
    //   /** 字段对应的中文解释，如：姓名 */
    //   fieldCNName: "流水位数",
    //   /** 字段的值，如：张三 */
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "inputNumber",
    //   rules: {
    //     required: true, // 只有为true的时候才写，为false这个字段不要
    //     min: 1,
    //     max: 6,
    //     len: 1,
    //   },
    //   span: 2,
    // },

    // {
    //   fieldName: "prefix",
    //   fieldCNName: "随机号前缀",
    //   filedValue: "",
    //   /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
    //   type: "inputText",
    //   rules: {
    //     required: true,
    //   },
    //   span: 2,
    // },
    {
      fieldName: "groupId",
      fieldCNName: "分组名称",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "select",
      rules: {
        required: true,
      },
      
      span: 2,
      itemList: item,
    },
    {
      fieldName: "groupSeq",
      fieldCNName: "入组序号",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "inputText",
      rules: {
        required: true,
      },
      span: 2,
    },
    {
      fieldName: "randomNo",
      fieldCNName: "随机号",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "inputText",
      rules: {
        required: true,
      },
      span: 2,
    },
    {
      fieldName: "",
      fieldCNName: "",
      filedValue: "",
      /** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
      type: "",
      rules: {
        required: true,
      },
      span: 2,
    },
  ];
};
